package com.imay.live.activity.family.util;

import com.imay.live.R;

/**
 * Created by Administrator on 2017/9/8 0008.
 */

public class LevelUtil {

    public static int getLevelColor(int level) {
        int colorid = R.color.level_1;
        switch (level) {
            case 1:
                colorid = R.color.level_1;
                break;
            case 2:
            case 3:
                colorid = R.color.level_2_3;
                break;
            case 4:
            case 5:
                colorid = R.color.level_4_5;
                break;
            case 6:
            case 7:
                colorid = R.color.level_6_7;
                break;
            case 8:
            case 9:
                colorid = R.color.level_8_9;
                break;
            case 10:
                colorid = R.color.level_10;
                break;
        }
        return colorid;
    }
}
